from typing import Optional, Any
from pydantic import BaseModel

class SystemSettingBase(BaseModel):
    SettingKey: str
    SettingValue: str
    Category: str
    Description: Optional[str] = None
    IsPublic: bool = True

    class Config:
        from_attributes = True

class SystemSettingCreate(SystemSettingBase):
    pass

class SystemSetting(SystemSettingBase):
    SettingId: int
    LastUpdateTime: datetime

    class Config:
        from_attributes = True 